package com.maila.xiaoaoschool.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.maila.xiaoaoschool.R;
import com.maila.xiaoaoschool.util.StartActivityUtils;
import com.maila.xiaoaoschool.widget.CircleImageView;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 个人资料
 * Created by Administrator on 2017/10/30.
 */

public class PersonInfoActivity extends AppCompatActivity {
    @BindView(R.id.white_return_iv)
    AutoRelativeLayout whiteReturnIv;
    @BindView(R.id.user_head_portrait)
    CircleImageView userHeadPortrait;
    @BindView(R.id.arl_head_portrait)
    AutoRelativeLayout arlHeadPortrait;
    @BindView(R.id.user_name)
    TextView userName;
    @BindView(R.id.arl_name)
    AutoRelativeLayout arlName;
    @BindView(R.id.sex)
    TextView sex;
    @BindView(R.id.arl_sex)
    AutoRelativeLayout arlSex;
    @BindView(R.id.phone)
    TextView phone;
    @BindView(R.id.arl_phone)
    AutoRelativeLayout arlPhone;
    @BindView(R.id.certificate)
    TextView certificate;
    @BindView(R.id.rl_certification)
    AutoRelativeLayout rlCertification;
    @BindView(R.id.myAddress_rll)
    AutoRelativeLayout myAddressRll;

    @BindView(R.id.tv_school)
    TextView tvSchool;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_person_info);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.white_return_iv, R.id.arl_head_portrait, R.id.arl_name, R.id.arl_sex, R.id.arl_phone, R.id.rl_certification, R.id.myAddress_rll})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.white_return_iv:
                finish();
                break;
            case R.id.arl_head_portrait:
                break;
            case R.id.arl_name:
                break;
            case R.id.arl_sex:
                break;
            case R.id.arl_phone:
                break;
            case R.id.rl_certification:
                StartActivityUtils.start(this,CertificateActivity.class);
                break;
            case R.id.myAddress_rll:
                break;
        }
    }
}
